@extends('layouts.adminLayouts')

@section('mainContent')

    <div class="box">
        <form action="" method="post" class="form-horizontal">
            <input type="hidden" id="uploadUrl" value="/uploads/webSetting/">
            <input type="hidden" id="uploadWeb" value="{{route('move.files')}}">

            <div class="box-body">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#activity" data-toggle="tab">基本信息</a></li>
                        <li><a href="#timeline" data-toggle="tab">SEO</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="active tab-pane" id="activity">

                            <div class="form-group">
                                <label class="col-md-2 control-label">网站名称</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" name="data[web][webTitle]"
                                           value="{{$info['webTitle']}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">域名</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" name="data[web][webDomian]"
                                           value="{{$info['webDomian']}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">小logo</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control input-upload"
                                               name="data[web][webSmallLogo]" value="{{$info['webSmallLogo']}}">
                                        <span class="input-group-btn">
                                          <button type="button" class="btn btn-info btn-flat">上传</button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">大logo</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control input-upload"
                                               name="data[web][bigSmallLogo]" value="{{$info['bigSmallLogo']}}">
                                        <span class="input-group-btn">
                                          <button type="button" class="btn btn-info btn-flat">上传</button>
                                        </span>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-md-2 control-label">公众号二维码</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control input-upload"
                                               name="data[web][weiXinImg]" value="{{$info['weiXinImg']}}">
                                        <span class="input-group-btn">
                                          <button type="button" class="btn btn-info btn-flat">上传</button>
                                        </span>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-md-2 control-label">ICP</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" name="data[web][webIcp]"
                                           value="{{$info['webIcp']}}">
                                </div>
                            </div>

                        </div>

                        <div class="tab-pane" id="timeline">

                            <div class="form-group">
                                <label class="col-md-2 control-label">SEO标题</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" name="data[seo][seoTitle]"
                                           value="{{$info['seoTitle']}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">SEO关键字</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" name="data[seo][keywords]"
                                           value="{{$info['keywords']}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">SEO说明</label>
                                <div class="col-md-6">
                                    <textarea class="form-control" rows="4"
                                              name="data[seo][seoDescription]">{{$info['seoDescription']}}</textarea>
                                </div>
                            </div>

                        </div>


                    </div>

                </div>


            </div>

            <div class="box-footer">
                <div class="col-md-2"></div>
                <div class="col-md-6">
                    {{csrf_field()}}
                    <div class="btn-group pull-left">
                        <button type="submit" class="btn btn-default">提交</button>
                    </div>
                    <div class="btn-group pull-right">
                        <button class="btn btn-danger" onclick="history.go(-1);">取消</button>
                    </div>
                </div>
            </div>
        </form>

    </div>

@endsection
